<?php
declare(strict_types=1);

namespace App\Model\Dao\Specific;


use App\Model\Dao\IAbstract;
use App\Model\Entity\ChatUser;
use Swoft\Db\Eloquent\Collection;

/**
 * 用户数据访问接口
 * Interface IServerUser
 * @package App\Model\Dao\Specific
 */
interface IServerUser extends IAbstract
{
    public function getUserInfoByUserName(array $userData): ?ChatUser;

    public function checkUser(array $userData): string ;
    
    public function parseUser(array $userData, string &$errorMessage): string;
    
    public function searchUserByUserName(array $userData): Collection;
    
    /**
     * 获取用户好友
     * @param Collection $friendCollection
     * @return Collection
     */
    public function getUserDataByFriendId(Collection $friendCollection):Collection;
}